package org.jeecg.modules.demo.mytest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 项目表
 * @Author: thankgod7
 * @Date: 2023-07-28
 * @Version: V1.0
 */
@Data
@TableName("mt_project")
@ApiModel(value = "mt_project对象", description = "项目表")
public class MtProject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 分类编号
     */
    @Excel(name = "分类编号", width = 15, dictTable = "sys_category", dicText = "name", dicCode = "code")
    @Dict(dictTable = "sys_category", dicText = "name", dicCode = "code")
    @ApiModelProperty(value = "分类编号")
    private String categoryCode;
    /**
     * 项目编号
     */
    @Excel(name = "项目编号", width = 15)
    @ApiModelProperty(value = "项目编号")
    private String projectCode;
    /**
     * 项目名称
     */
    @Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
    /**
     * 项目负责人
     */
    @Excel(name = "项目负责人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "项目负责人")
    private String projectHeadId;
    /**
     * 项目负责人所属部门ID
     */
    @Excel(name = "项目负责人所属部门ID", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "项目负责人所属部门ID")
    private String projectHeadDeptId;
    /**
     * 项目开始时间
     */
    @Excel(name = "项目开始时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "项目开始时间")
    private Date projectStart;
    /**
     * 项目结束时间
     */
    @Excel(name = "项目结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "项目结束时间")
    private Date projectEnd;
    /**
     * 项目简介
     */
    @Excel(name = "项目简介", width = 15)
    @ApiModelProperty(value = "项目简介")
    private String projectDesc;
    /**
     * 项目状态
     */
    @Excel(name = "项目状态", width = 15, dicCode = "project_state")
    @Dict(dicCode = "project_state")
    @ApiModelProperty(value = "项目状态")
    private String projectState;
    /**
     * 项目总份数
     */
    @Excel(name = "项目总份数", width = 15)
    @ApiModelProperty(value = "项目总份数")
    private Integer totalCopies;
    /**
     * 项目总页数
     */
    @Excel(name = "项目总页数", width = 15)
    @ApiModelProperty(value = "项目总页数")
    private Integer totalPage;
}
